package com.tim.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者：Tim
 * 时间：2021/4/28 10:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {
    private Integer personID;
    private String plotName;
    private String houseName;
    private String personName;
    private String image;
    private String idNum;
    private String tel;
    private String job;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date bornDate;
    private String sex;
    private String type;
    private String detail;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date creatorTime;
    @JsonIgnore
    private String file;

    public Person(Integer personID, String plotName, String houseName, String personName, String image, String idNum, String tel, String job, Date bornDate, String sex, String type, String detail, Date creatorTime) {
        this.personID = personID;
        this.plotName = plotName;
        this.houseName = houseName;
        this.personName = personName;
        this.image = image;
        this.idNum = idNum;
        this.tel = tel;
        this.job = job;
        this.bornDate = bornDate;
        this.sex = sex;
        this.type = type;
        this.detail = detail;
        this.creatorTime = creatorTime;
    }
}
